package org.wz.complex.work.entity.project.generator;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.wz.complex.work.anno.ComposeEntity;
import org.wz.complex.work.anno.Deploy;
import org.wz.complex.work.anno.RemoveCols;
import org.wz.complex.work.entity.auth.sysinfo.SysinfoMicro;
import org.wz.complex.work.entity.project.code.CodeJava;

@Deploy
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("project_generator_java")
public class GeneratorJava {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private Long sysinfoMicroId;

    @ComposeEntity
    @TableField(exist = false)
    private SysinfoMicro sysinfoMicro;

    private String module;

    private String entity;

    private Long codeJavaId;

    @ComposeEntity
    @TableField(exist = false)
    private CodeJava codeJava;

    private String category;

    private String deploy;

    private String tableName;

    private String tableMean;

    private String url;

    private String javaEntity;

    private String codeType;  // Entity,Mapper,Service,Impl,Controller

    private Integer status;   // 是否新增

}
